package com.coco.service.Impl;

import java.sql.SQLException;
import java.util.List;

import com.coco.dao.Impl.NewsDaoImpl;
import com.coco.model.News;
import com.coco.service.NewsService;

public class NewsServiceImpl implements NewsService {

	NewsDaoImpl newsDaoImpl = new NewsDaoImpl();
	
	@Override
	public List<News> findAllNews() throws SQLException {
		String sql = "select * from news";
		List<News> list = newsDaoImpl.findAllNews(sql);
		return list;
			
	}

}

	